import { ref } from 'vue'


const paginationParams = ref({
  total: 12,
  pageNum: 1,
  pageSize: 10,
})


const orderSelect = [
  {
    label: '任务名称',
    model: 'name',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '会议名称',
    model: 'hallName',
    placeholder: '请输入',
    type: 'input'
  },
  { 
    label: '品种',
    model: 'drugId',
    placeholder: '请选择',
    type: 'select',
    url: '/base/drug/list',
    selectData: []
  },
  // {
  //   label: '类型',
  //   model: 'type',
  //   dict: 'timed_task_type',
  //   placeholder: '请选择',
  //   type: 'select',
  //   message: '请选择类型',
  //   selectData: []
  // },
  { 
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    dict: 'task_status_all',
    type: 'select',
    selectData: []
  },
  { 
    label: '年份',
    model: 'year',
    placeholder: '请选择',
    type: 'select',
    dict: 'set_year_time',
    selectData: []
  },
  { 
    label: '月份',
    model: 'month',
    placeholder: '请选择',
    type: 'select',
    dict: 'set_moon_time',
    selectData: []
  },
  { 
    label: '推广公司',
    model: 'agencyId',
    placeholder: '请选择',
    type: 'select',
    url: '/base/agency/list',
    selectData: [],
    parm: {
      isDeleted: 0,
      status: 4
    },
  },
  { 
    label: '代表',
    model: 'mrId',
    placeholder: '请选择',
    type: 'select',
    url: '/base/medicalRepresentative/list',
    selectData: [],
    parm: {
      isDeleted: 0,
      status: 6
    },
  },
  {
    label: '异常',
    model: 'unusualReason',
    placeholder: '请输入',
    type: 'input'
  },
  { 
    label: '会议类型',
    model: 'pattern',
    placeholder: '请选择',
    type: 'select',
    selectData: [
      {
        label: '线上',
        value: '2'
      },
      {
        label: '线下',
        value: '1'
      },
    ]
  },
  { 
    label: '医院',
    model: 'hospital',
    value: 'name',
    placeholder: '请选择',
    url: '/base/hospital/list',
    type: 'select',
    selectData: []
  },
  { 
    label: '科室',
    model: 'departmentId',
    placeholder: '请选择',
    url: 'base/department/list',
    type: 'select',
    selectData: []
  },
  {
    label: '任务开始时间',
    model: 'startTime',
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    setTime: 'startTime',
  },
  {
    label: '任务结束时间',
    model: 'endTime',
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    setTime: 'endTime',
  },
  
]
export default { paginationParams, orderSelect }

